﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaInfrastructure;

using System.Drawing;

using DotSpatial.Data;



namespace FXnaAppBase
{

    /// <summary>
    /// 工作区域,表示我们目前的工作区域大小
    /// </summary>
    [Serializable]
   public class WorkBoundary:ICloneable
    {

        public WorkBoundary()
            : this(-500, -500, 1000, 1000)
        {

          



        }


        public WorkBoundary(double orgX,double orgY,double width,double height)
        {


            this._localExtent = new Extent(orgX, orgY,orgX+ width,orgY+ height);

         


          


            this._geoBoundary = new GeoBoundary();


 
        }





       



        GeoBoundary _geoBoundary;

        public GeoBoundary GeoBoundary
        {
            get { return _geoBoundary; }
            set { _geoBoundary = value; }
        }




        Extent _localExtent;

        public Extent LocalExtent
        {
            get { return _localExtent; }
            set { _localExtent = value; }
        }





        /// <summary>
        /// 测试，临时用一下，以后又机会再改
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            return this.MemberwiseClone();
        }


    
        


    }
}
